* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.search-box {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.search-box div {
    margin-right: 15px;
    margin-bottom: 10px;
}

label {
    display: inline-block;
    width: 80px;
    text-align: right;
    margin-right: 10px;
    font-weight: bold;
}

input[type="text"], input[type="date"], select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

button {
    background-color: #20a0ff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #1989fa;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: center;
    font-size: 14px;
}

table th {
    background-color: #f5f7fa;
    font-weight: bold;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #fafafa;
}

table tr:hover {
    background-color: #f5f7fa;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn.active {
    background: #20a0ff;
    color: white !important;
    border-color: #20a0ff;
}

.page-btn:hover:not(.active) {
    background: #f0f0f0;
}

.page-jump-box {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}

.page-jump-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.page-jump-btn {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.loading-text {
    text-align: center;
    color: #666;
    padding: 20px;
}


.pagination a, .pagination span {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .active {
    background-color: #20a0ff;
    color: white;
    border: 1px solid #20a0ff;
}

.operation-btn {
    background-color: #20a0ff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
}

.error-message {
    color: red;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
}

.no-data-message {
    text-align: center;
    padding: 20px;
    font-weight: bold;
    color: #666;
}

/* 新增省略号样式 */
.page-ellipsis {
    padding: 6px 12px;
    color: #666;
    user-select: none;
}

/* 禁用按钮样式 */
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 保持原有分页样式 */
.page-btn {
    min-width: 36px;
    margin: 0 2px;
    transition: background-color 0.2s;
    color: #333; /* 数字颜色改为黑色 */
}

/* 添加侧边栏样式 */
.sidebar {
    width: 200px;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    height: 100%;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    text-align: center;
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 18px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sidebar li:hover {
    background-color: #34495e;
}

.sidebar li.active {
    background-color: #3498db;
}

.main-content {
    margin-left: 220px;
}

.admin-header {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    margin-bottom: 20px;
}

.admin-header h2 {
    font-size: 20px;
}

.admin-header .user-info {
    display: flex;
    align-items: center;
}

.admin-header .user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.active {
    background-color: #20a0ff;
    color: white !important;
}